Skip to content

Conversation

DNXie
Copy link
Member

@DNXie DNXie commented Sep 24, 2025

This PR updates Policy.launch to match the new ForgeActor.launch API, removing the process_config argument and construct it inside of launch.

Specifically fixed the error

TypeError: Policy.launch() missing 1 required keyword-only argument: 'process_config'

Test

python -m apps.grpo.main --config apps/grpo/qwen3_1_7b.yaml
pytest -s --log-cli-level=INFO  tests/unit_tests/test_service.py

cc @casteryh @vidhyav @felipemello1

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 24, 2025
@DNXie DNXie requested a review from casteryh September 24, 2025 17:26
) -> "Policy":
# Note - get_proc_mesh will set MASTER_ADDR, MASTER_PORT and CUDA_VISIBLE_DEVICES
# automatically.
process_config: ProcessConfig = ProcessConfig(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no action required.
just curious why this wasn't an issue before? is it because we got rid of process_config in the new config format?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Policy.launch inherited from ForgeActor.launch. This wasn’t an issue before because ForgeActor.launch required process_config. After the PR #195, ForgeActor.launch no longer takes a process_config and constructs a default process_config, but Policy.launch still required it, which is a mismatch.

@DNXie DNXie merged commit 3cae7b4 into meta-pytorch:main Sep 24, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants